package com.cyzy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication(scanBasePackages = {
        "com.cyzy.service.impl",  // Bullet 模块自身的包
        "com.cyzy.service",       // MessageService 在 message 模块的这个包下
        "com.cyzy.sender",        // ChatProducer 在 message 模块的这个包下
        "com.cyzy.config"         // RocketMQ 配置类
})
@RestController
@EnableCaching
@ComponentScan(basePackages = {"com.cyzy", "com.cyzy.config"})
public class DanmakuApplication {
    public static void main(String[] args) {
        SpringApplication.run(DanmakuApplication.class, args);
    }
}
